package cn.jf;

import cn.jf.modules.es.esclientrhl.annotation.EnableESTools;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Slf4j
@EnableSwagger2
@SpringBootApplication
@EnableESTools(entityPath = "cn.jf.modules.es.entity")
public class DubboProviderApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(DubboProviderApplication.class);
    }

    public static void main(String[] args) {
       SpringApplication.run(DubboProviderApplication.class, args);



    }
}
